﻿using Caliburn.Micro;

namespace WPCloudPT.ViewModels
{
    /// <summary>
    /// classe para lidar com o tombstoning da view/viewmodel
    /// </summary>
    public class InfoUserViewModelStorage:StorageHandler<InfoUserViewModel>
    {
        public override void Configure()
        {
            Property(x => x.TxtMailUser).InPhoneState().RestoreAfterViewLoad();
            Property(x => x.TxtNomeUser).InPhoneState().RestoreAfterViewLoad();
            Property(t => t.TxtSharedQuota).InPhoneState().RestoreAfterViewLoad();
            Property(t => t.TxtUtilizadorQuota).InPhoneState().RestoreAfterViewLoad();
            Property(t => t.TxtUtilizadorUltimoAcesso).InPhoneState().RestoreAfterViewLoad();
            Property(t => t.TmpUser).InPhoneState().RestoreAfterViewLoad();
        }
    }
}
